# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=glacier-filemuncher
pkgver=0.3.1
pkgrel=1
pkgdesc="The Glacier file manager"
url="https://github.com/nemomobile-ux/glacier-filemuncher"
# armhf blocked by qtquickcontrols-nemo
arch="all !armhf"
license="LGPL-2.0-or-later"
depends="
	mapplauncherd
	nemo-qml-plugin-thumbnailer
	nemo-qml-plugin-folderlistmodel
	qtquickcontrols-nemo
	"
makedepends="
	cmake
	libglacierapp-dev
	qt5-qtbase-dev
	qt5-qttools-dev
	samurai
	"
source="https://github.com/nemomobile-ux/glacier-filemuncher/archive/$pkgver/glacier-filemuncher-$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DINSTALL_QML_IMPORT_DIR=/usr/lib/qt5/qml
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
f229d0d0acf5ea0ad1196ba76af4b5ecde086de36933a749e5fc0eeca4ff091081223c2f54d3a7f049a82211f09afd68a8d152aa710c8a6c5d8273dfa1c60350  glacier-filemuncher-0.3.1.tar.gz
"
